package com.qianfeng.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.qianfeng.pojo.Dept;

public interface DeptMapper {
 @Select("select * from dept where name=#{name}")
 Dept findDeptByName(@Param("name") String name); //@Param("name")：将参数String name的值传给sql语句中的name

 @Insert("insert into dept(name) values(#{name})")
 void addDept(@Param("name") String name);
}
